home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / guidexv / gfm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  2.6 KB  |  84 lines

  1. /*
  2.  * @(#)gfm.h    2.18 91/10/15 Copyright 1990 Sun Microsystems
  3.  *
  4.  * This file is a product of Sun Microsystems, Inc. and is provided for
  5.  * unrestricted use provided that this legend is included on all tape
  6.  * media and as a part of the software program in whole or part.  Users
  7.  * may copy or modify this file without charge, but are not authorized to
  8.  * license or distribute it to anyone else except as part of a product
  9.  * or program developed by the user.
  10.  * 
  11.  * THIS FILE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  12.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  13.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  14.  * 
  15.  * This file is provided with no support and without any obligation on the
  16.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  17.  * modification or enhancement.
  18.  * 
  19.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  20.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS FILE
  21.  * OR ANY PART THEREOF.
  22.  * 
  23.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  24.  * or profits or other special, indirect and consequential damages, even
  25.  * if Sun has been advised of the possibility of such damages.
  26.  * 
  27.  * Sun Microsystems, Inc.
  28.  * 2550 Garcia Avenue
  29.  * Mountain View, California  94043
  30.  */
  31.  
  32. #ifndef guide_gfm_DEFINED
  33. #define guide_gfm_DEFINED
  34.  
  35. #include    <sys/types.h>
  36. #include    "gfm_ui.h"
  37. #include    <c_varieties.h>
  38.  
  39. #define GFM_OK        0
  40. #define    GFM_ERROR    1
  41. #define    GFM_TYPE_MASK    0x00007
  42. #define GFM_DOTDOT_STR    dgettext("libguidexv", ".. (Go up a level)")
  43. #define    GFM_KEY        12345
  44.  
  45. typedef enum {
  46.     GFM_LOAD,
  47.     GFM_SAVE,
  48.     GFM_CREATE,
  49.     GFM_DEFAULT
  50. } GFM_MODE;
  51.  
  52. typedef enum {
  53.     GFM_FOLDER    = 0,
  54.     GFM_APPLICATION    = 1,
  55.     GFM_BROKENLINK    = 2,
  56.     GFM_DOCUMENT    = 3,
  57.     GFM_USERDEF    = 4,
  58.     GFM_SYSDOC    = 5
  59. } GFM_TYPE;
  60.  
  61. typedef struct {
  62.     char        *filter_pattern;
  63.     int        (*filter_callback)();
  64.     int        show_dotfiles;
  65.     int        height;
  66.     int        width;
  67.     time_t        dir_mtime;
  68.     int        initial_win_height;
  69.     int        initial_list_height;
  70.     int        initial_list_excess;
  71.     Server_image    user_glyph;
  72.     GFM_MODE    mode;
  73.     int        (*callback)();
  74. } GFM_PRIVATE;
  75.  
  76. EXTERN_FUNCTION( gfm_popup_objects *gfm_initialize,    (gfm_popup_objects *, Xv_opaque, char *) );
  77. EXTERN_FUNCTION( void    gfm_activate,        (gfm_popup_objects *, char *, char *, int (*)(gfm_popup_objects *, char *), int (*)(gfm_popup_objects *, char *, char *), Xv_opaque, GFM_MODE) );
  78. EXTERN_FUNCTION( void    gfm_show_dotfiles,    (gfm_popup_objects *, int) );
  79. EXTERN_FUNCTION( void    gfm_set_action,        (gfm_popup_objects *, char *) );
  80. EXTERN_FUNCTION( void    gfm_compile_regex,    (char *) );
  81. EXTERN_FUNCTION( int    gfm_match_regex,    (char *) );
  82.  
  83. #endif guide_gfm_DEFINED
  84.